package com.csgsystems.im.module.action.example;

public class QuestionAction extends ExampleBaseAction {

	/**
	 *
	 */
	private static final long serialVersionUID = -3546543421890987045L;
	
	String question = null;

	@SuppressWarnings("unchecked")
	@Override
	public String execute() throws Exception {
		String returnValue = ERROR;
		
		try {
			//surveyDao.create(new Survey(name, Category.Web, 847, vxml, numberOfQuestions, 0, SurveyType.Web, false, false));
			//surveyDao.create(new Question(surveyId, questionId, languageId, questionTypeId, question, weight));

			returnValue = SUCCESS;
			
		} catch (Exception e ) {
			addActionError(e.getMessage());
			
		}
		return returnValue;

	}
	
	public String getQuestion() {
		return question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

}
